/*
 * Copyright 2014 STNet,Inc..
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package jp.co.stnet.apps.medcloud.domain.services.api;

import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;
import jp.co.stnet.apps.medcloud.domain.beans.FacilityInformation;
import jp.co.stnet.apps.medcloud.domain.beans.PharmacyListRequest;

/**
 * 患者向け薬局管理のサービスクラスです.
 *
 * @version <table border="1">
 * <tr>
 * <th>Version</th>
 * <th>更新日</th>
 * <th>更新者</th>
 * <th>内容</th>
 * </tr>
 * <tr>
 * <td>1.0</td>
 * <td>2014/06/26</td>
 * <td>STNet</td>
 * <td>新規作成</td>
 * </tr>
 * </table>
 */
@Service
public class PharmacyListResourceService {

    /**
     * 薬局一覧を返します.
     *
     * @param request PharmacyListRequest オブジェクト
     * @return FacilityInformation のリスト
     */
    public List<FacilityInformation> getFacilityInformationList(
            PharmacyListRequest request) {
        List<FacilityInformation> list = new ArrayList<>();

        // SampleCode start---
        FacilityInformation info = new FacilityInformation();
        info.setFacilityInnerId("001");
        info.setFacilityName("テスト薬局");
        info.setFacilityNameKana("ﾃｽﾄﾔｯｷｮｸ");
        list.add(info);

        FacilityInformation info2 = new FacilityInformation();
        info2.setFacilityInnerId("002");
        info2.setFacilityName("テスト薬局");
        info2.setFacilityNameKana("ﾃｽﾄﾔｯｷｮｸ");
        list.add(info2);

        // SampleCode end ---
        return list;

    }
}
